package com.example.forum.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;


@Setter
@Getter
@ApiModel(value="商品")
public class ProductModel {

    @NotBlank(message="商品名不能为空")
    @ApiModelProperty(value="商品名")
    private String name;

    @NotBlank(message="商品编号不能为空")
    @ApiModelProperty(value="商品编号")
    private String code;

    @ApiModelProperty(value="商品描述")
    private String description;

    private String id;
}